// 全局样式
import "@/style/index.scss";
// element plus
import ElementPlus from "element-plus";
import * as Icons from "@element-plus/icons-vue";
import locale from "element-plus/es/locale/lang/zh-cn";
// 主题 -- 代替 element-plus/dist/index.css
import "@/style/theme.scss";
import "@/style/tailwind.css";
// router
import router from "@/routers/index";
// iconfont
import '@/assets/iconfont/iconfont.css';
import '@/assets/iconfont/iconfont.js';
// pinia
import pinia from "@/stores";
import { createApp } from "vue";
import App from "./App.vue";
const app = createApp(App);

// 注册element Icons组件
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key]);
});

app.use(router).use(pinia).use(ElementPlus, { locale }).mount("#app");
